Fluent Assertions Documentation
FluentAssertions Namespace / FluentActions Class / Enumerating Method / Enumerating(Func<IEnumerable>) Method
In This Topic
    Enumerating(Func<IEnumerable>) Method
    In This Topic
    Forces enumerating a collection. Should be used to assert that a method that uses the yield keyword throws a particular exception.
    Syntax
    public static Action Enumerating( 
       Func<IEnumerable> enumerable
    )

    Parameters

    enumerable
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also